13. Case Study in Python

Case Study in Python

Use the Jupyter notebook to analyze admission_data.csv to find the following values and for the quizzes below. Indexing, query, and groupby may come in handy!

  1. Proportion and admission rate for each gender
  2. Proportion and admission rate for physics majors of each gender
  3. Proportion and admission rate for chemistry majors of each gender
  4. Admission rate for each major

Workspace

This section contains either a workspace (it can be a Jupyter Notebook workspace or an online code editor work space, etc.) and it cannot be automatically downloaded to be generated here. Please access the classroom with your account and manually download the workspace to your local machine. Note that for some courses, Udacity upload the workspace files onto https://github.com/udacity , so you may be able to download them there.

Workspace Information:

  • Default file path:
  • Workspace type: jupyter
  • Opened files (when workspace is loaded): n/a

QUIZ QUESTION: :

Match the correct values

ANSWER CHOICES:



Feature

Value

0.486

0.287938

0.514

0.485597

SOLUTION:

Feature

Value

0.486

0.287938

0.514

0.485597

By only looking at gender and admission rates, who appears to be favored in the admissions process?

SOLUTION: Males

QUIZ QUESTION: :

Match the correct values

ANSWER CHOICES:



Feature

Value

0.742

0.516

0.926

0.121

SOLUTION:

Feature

Value

0.742

0.516

0.926

0.121

Of the students applying as physics majors, who appears to be favored in the admissions process?

SOLUTION: Females

Who tends to have more physics majors than chemistry majors?

SOLUTION: Males

QUIZ QUESTION: :

Match the correct values

ANSWER CHOICES:



Feature

Value

0.074

0.879

0.226

0.111

SOLUTION:

Feature

Value

0.074

0.879

0.226

0.111

Of the students applying as chemistry majors, who appears to be favored in the admissions process?

SOLUTION: Females

Who tends to have more chemistry majors than physics majors?

SOLUTION: Females

Which major has a lower admission rate?

SOLUTION: Chemistry

Reflect

QUESTION:

Take a moment to organize and explain what just happened.

ANSWER:

Can you think of other situations where Simpson's Paradox could occur?